package com.credithc.signature.job.ro;

import lombok.Data;

import java.util.List;

/**
 * @desc: <br/>
 * @author: Jingbo Hu<br/>
 * @time：2021年06⽉29⽇<br/>
 * @version：v1.0.0<br>
 */
@Data
public class WxRo {

    private String key;
    private String subject;
    private String body;
    private String url;
    private List<String> to;

    /**
     * 封装文本消息
     * @param key
     * @param body
     * @param to
     */
    public WxRo(String key, String body, List to) {
        this.key = key;
        this.body = body;
        this.to = to;
    }

    /**
     * 封装卡片消息
     * @param key
     * @param subject
     * @param body
     * @param url
     * @param to
     */
    public WxRo(String key, String subject, String body, String url, List<String> to) {
        this.key = key;
        this.subject = subject;
        this.body = body;
        this.url = url;
        this.to = to;
    }
}
